package com.chenkaiwei.configserverdemo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.config.server.EnableConfigServer;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

//@EnableDiscoveryClient //可以不用写
@EnableConfigServer
@EnableEurekaClient//在增加总线功能时添加
@SpringBootApplication
public class ConfigServerDemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(ConfigServerDemoApplication.class, args);
    }
}


//运行结果获取：
//http://127.0.0.1:2501/config-client-demo-dev.json （纯属性，建议使用）
//http://127.0.0.1:2501/config-client-demo/dev/ (更多信息)
